# Auth模块测试
if(BUILD_TESTS)
    find_package(GTest REQUIRED)
    
    file(GLOB AUTH_TEST_SOURCES *.cpp)
    
    add_executable(auth_test ${AUTH_TEST_SOURCES})
    target_include_directories(auth_test PRIVATE
        ${CMAKE_CURRENT_SOURCE_DIR}/../../include/auth
    )
    
    target_link_libraries(auth_test
        auth
        core  # 依赖core模块
        GTest::GTest
        GTest::Main
    )
    
    add_test(NAME auth_test COMMAND auth_test)
endif()